import { resolve } from "node:path";
import { access, constants, mkdir } from "node:fs/promises";

export default function datasetsInit() {
  const datasetsPath = resolve(process.cwd(), "./static/datasets");

  access(datasetsPath, constants.F_OK).catch((err) => mkdir(datasetsPath, { recursive: true }));
}
